#include "EepromData.h"
#include "flash.h"

static volatile unsigned int u32FlashTestFlag   = 0;
void FlashInt(void)
 {
    if (TRUE == Flash_GetIntFlag(FlashPCInt))
    {
        Flash_ClearIntFlag(FlashPCInt);
        u32FlashTestFlag |= 0x01;
        Flash_DisableIrq(FlashPCInt);
    }
    if (TRUE == Flash_GetIntFlag(FlashSlockInt))
    {
        Flash_ClearIntFlag(FlashSlockInt);
        u32FlashTestFlag |= 0x02;
        Flash_DisableIrq(FlashSlockInt);
    }
      
 }

void read_data(unsigned char *p,unsigned char len)
{
	unsigned char i;
	for(i=0;i<len;i++)
	{
	}
}

void write_data(unsigned char *p,unsigned char len)
{
	    while(Ok != Flash_Init(FlashInt, 1, TRUE))
    {
        ;
    }
    
    ///< FLASH??????
//    while(Ok != Flash_SectorErase(u32Addr))
//    {
//        ;
//    }
}